﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Exhibition.Common.Helper;
using Exhibition.Dao.ViewModel;
using Exhibition.Service;

namespace Exhibition.UserCenter
{
    public partial class Interestuser : BaseUserPage
    {
        int utype = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["tp"] != null) {
                utype =StringUtils.getRequestConvertToInt(Request["tp"]);
            }

            if (!IsPostBack) {
                GetUserCompList();
            }
        }

     
        private void GetUserCompList()
        {
            int outcount=0;
            List<UserModel> mdls = CenterService.userService.GetUserList("",utype,pager.StartRecordIndex,pager.PageSize,out outcount);
            pager.RecordCount = outcount;
            repList.DataSource = mdls;
            repList.DataBind();
        }
    }
}